using AutoMapper;
using ZeroBlog.Core.Domains.Blog;
using ZeroSum.Domain.Dtos;

namespace ZeroBlog.Application.Posts.Dtos.In
{
    [AutoMap(typeof(Post), ReverseMap = true)]
    public class UpdatePostDto : UpdateInputDto<long>
    {
        public string Title { get; set; }

        public string Content { get; set; }

        public string Description { get; set; }

        public long UserId { get; set; }

        public string CoverImgUrl { get; set; }

        public int Views { get; set; }

        public int CategoryId { get; set; }

        public Category Category { get; set; }

        public int Likes { get; set; }

        public ICollection<Common> Commons { get; set; }

        public bool IsDeleted { get; set; }
    }
}
